Optimal. Leaf size=78 \[ -\frac {x}{2}+\frac {e^{-2 a} \sqrt {\frac {\pi }{2}} \text {Erf}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}}+\frac {e^{2 a} \sqrt {\frac {\pi }{2}} \text {Erfi}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {5408, 5407,
2235, 2236} \begin {gather*} \frac {\sqrt {\frac {\pi }{2}} e^{-2 a} \text {Erf}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}}+\frac {\sqrt {\frac {\pi }{2}} e^{2 a} \text {Erfi}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}}-\frac {x}{2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2235
Rule 2236
Rule 5407
Rule 5408
Rubi steps
\begin {align*} \int \sinh ^2\left (a+b x^2\right ) \, dx &=\int \left (-\frac {1}{2}+\frac {1}{2} \cosh \left (2 a+2 b x^2\right )\right ) \, dx\\ &=-\frac {x}{2}+\frac {1}{2} \int \cosh \left (2 a+2 b x^2\right ) \, dx\\ &=-\frac {x}{2}+\frac {1}{4} \int e^{-2 a-2 b x^2} \, dx+\frac {1}{4} \int e^{2 a+2 b x^2} \, dx\\ &=-\frac {x}{2}+\frac {e^{-2 a} \sqrt {\frac {\pi }{2}} \text {erf}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}}+\frac {e^{2 a} \sqrt {\frac {\pi }{2}} \text {erfi}\left (\sqrt {2} \sqrt {b} x\right )}{8 \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 86, normalized size = 1.10 \begin {gather*} \frac {-4 \sqrt {2} \sqrt {b} x+\sqrt {\pi } \text {Erf}\left (\sqrt {2} \sqrt {b} x\right ) (\cosh (2 a)-\sinh (2 a))+\sqrt {\pi } \text {Erfi}\left (\sqrt {2} \sqrt {b} x\right ) (\cosh (2 a)+\sinh (2 a))}{8 \sqrt {2} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.81, size = 51, normalized size = 0.65
method | result | size |
risch | \(-\frac {x}{2}+\frac {{\mathrm e}^{-2 a} \sqrt {\pi }\, \sqrt {2}\, \erf \left (x \sqrt {2}\, \sqrt {b}\right )}{16 \sqrt {b}}+\frac {{\mathrm e}^{2 a} \sqrt {\pi }\, \erf \left (\sqrt {-2 b}\, x \right )}{8 \sqrt {-2 b}}\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 56, normalized size = 0.72 \begin {gather*} \frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\sqrt {2} \sqrt {-b} x\right ) e^{\left (2 \, a\right )}}{16 \, \sqrt {-b}} + \frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\sqrt {2} \sqrt {b} x\right ) e^{\left (-2 \, a\right )}}{16 \, \sqrt {b}} - \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 73, normalized size = 0.94 \begin {gather*} -\frac {\sqrt {2} \sqrt {\pi } \sqrt {-b} {\left (\cosh \left (2 \, a\right ) + \sinh \left (2 \, a\right )\right )} \operatorname {erf}\left (\sqrt {2} \sqrt {-b} x\right ) - \sqrt {2} \sqrt {\pi } \sqrt {b} {\left (\cosh \left (2 \, a\right ) - \sinh \left (2 \, a\right )\right )} \operatorname {erf}\left (\sqrt {2} \sqrt {b} x\right ) + 8 \, b x}{16 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sinh ^{2}{\left (a + b x^{2} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.41, size = 58, normalized size = 0.74 \begin {gather*} -\frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\sqrt {2} \sqrt {-b} x\right ) e^{\left (2 \, a\right )}}{16 \, \sqrt {-b}} - \frac {\sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\sqrt {2} \sqrt {b} x\right ) e^{\left (-2 \, a\right )}}{16 \, \sqrt {b}} - \frac {1}{2} \, x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\mathrm {sinh}\left (b\,x^2+a\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________